#ifndef _GRAPH_H_
# define _GRAPH_H_

#include <gr_graph_fun.h>
#include <gdk/gdk.h>
#include <gnome.h>

typedef struct _graph_options {
	GdkFont *label_font;
	short show_label;
	GdkColor *node_color;
	GdkColor *edge_color;
	GdkColor *label_color;
} graph_options;

graph_options *
init_options(void);

GraphFrame *
init_graph(int width,int height);

void
draw_graph(GnomeCanvas *canvas,GraphFrame *graph, graph_options *opts);

void
clear_graph(GnomeCanvas *canvas);

#endif
